

<%@ page import="br.edu.ufam.avaliacao.TipoItem" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main"/>
        <g:javascript library="app/buttons"/>
    </head>
    <body>
      <h1>Cadastrar Tipo Item</h1><hr/>
          <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
          </g:if>
          <g:hasErrors bean="${tipoItemInstance}">
            <div class="errors">
                <g:renderErrors bean="${tipoItemInstance}" as="list" />
            </div>
          </g:hasErrors>
          <div id="validateErrors"class="errors" style="display:none;">
            <ul></ul>
          </div>
          <br/>
          <g:form name="formMenu" controller="tipoItem" method="post" >
            <table  width="100%" border="0" cellspacing="5" cellpadding="0" align="center" class="textoverdana">
            <tr>
              <td>Descrição: * &nbsp;<br/>
                  <input type="text" 
                         size="35" 
                         id="nome" 
                         name="nome" 
                         value="${fieldValue(bean:tipoItemInstance,field:'nome')}"
                         class="text ui-widget-content ui-corner-all"/>
              </td>
                <td>&nbsp;</td>
            </tr>            
          </table>
          <p align="left">
              <g:actionSubmit id="salvar" class="botao" action="save" value="Cadastrar" onClick="return validar();"/>
              <g:link action="list"><input class="botao" id="voltar" type="button" value="Voltar" /></g:link>
          </p>            
          <p align="left"><em>*Campos Obrigat&oacute;rios</em></p>
      </g:form>

    </body>
</html>